import request from "@/utils/http"

export function list(params: any) {
    return request({
        method: "get",
        url: "/biosample/dnaextraction/extract-list",
        params
    })
}

// 修改
export function modify(data: any) {
    return request({
        method: "post",
        url: "/biosample/dnaextraction/update",
        data
    })
}

//单条审核
export function examine(data: any) {
    return request({
        method: "post",
        url: "/biosample/dnaextraction/apply",
        data
    })
}

// 导出
export function derive(key:any) {
    return request({
        method: 'get',
        url: '/biosample/dnaextraction/export-excel-dnaextraction',
        params: { key },
        responseType: "blob"
    })
}

// DNA浓度
export function save(data: any) {
    return request({
        method: "post",
        url: "/biosample/dnaextraction/save",
        data
    })
}
